package cn.smbms.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.smbms.dao.UserMapper;
import cn.smbms.pojo.User;

@Service("userService")
public class UserServiceImpl implements UserService {

	@Resource
	private UserMapper userMapper;
	
	@Override
	public User login(String userCode) {
		return userMapper.queryByCodeAndPwd(userCode);
	}

}
